home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / distribs / latex / doc / art11.doc < prev    next >
Text File  |  1992-03-18  |  14KB  |  344 lines

  1. % ARTICLE STANDARD DOCUMENT STYLE -- Released 14 Jan 1992
  2. %    for LaTeX version 2.09
  3. % Copyright (C) 1992 by Leslie Lamport
  4.  
  5. %  ****************************************
  6. %  *               FONTS                  *
  7. %  ****************************************
  8. %
  9.  
  10. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  11. \normallineskip 1pt
  12. \def\baselinestretch{1}
  13.  
  14. % Each size-changing command \SIZE executes the command
  15. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  16. % where:
  17. %   BASELINESKIP = Normal value of \baselineskip for that size. (Actual 
  18. %                  value will be \baselinestretch * BASELINESKIP.)
  19. %
  20. %  \FONTSIZE     = Name of font-size command.  The currently available
  21. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  22. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  23. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  24. %  \@FONTSIZE    = The same as the font-size command except with an
  25. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  26. %                  \@FONTSIZE = \@xivpt.
  27. %
  28. % For reasons of efficiency that needn't concern the designer,
  29. % the document style defines \@normalsize instead of \normalsize.  This
  30. % is done only for \normalsize, not for any other size-changing
  31. % commands.
  32.  
  33. \def\@normalsize{\@setsize\normalsize{13.6pt}\xipt\@xipt
  34. \abovedisplayskip 11\p@ plus3\p@ minus6\p@
  35. \belowdisplayskip \abovedisplayskip
  36. \abovedisplayshortskip  \z@ plus3\p@   
  37. \belowdisplayshortskip  6.5\p@ plus3.5\p@ minus3\p@
  38. \let\@listi\@listI}   % Setting of \@listi added 9 Jun 87
  39.  
  40. \def\small{\@setsize\small{12pt}\xpt\@xpt
  41. \abovedisplayskip 10\p@ plus2\p@ minus5\p@
  42. \belowdisplayskip \abovedisplayskip
  43. \abovedisplayshortskip  \z@ plus3\p@   
  44. \belowdisplayshortskip  6\p@ plus3\p@ minus3\p@
  45. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  46. \topsep 6\p@ plus2\p@ minus2\p@\parsep 3\p@ plus2\p@ minus\p@
  47. \itemsep \parsep}}
  48.  
  49. \def\footnotesize{\@setsize\footnotesize{11pt}\ixpt\@ixpt
  50. \abovedisplayskip 8\p@ plus2\p@ minus4\p@
  51. \belowdisplayskip \abovedisplayskip
  52. \abovedisplayshortskip \z@ plus\p@
  53. \belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
  54. \def\@listi{\leftmargin\leftmargini %% Added 22 Dec 87
  55. \topsep 4\p@ plus2\p@ minus2\p@\parsep 2\p@ plus\p@ minus\p@
  56. \itemsep \parsep}}
  57.  
  58. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  59. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  60. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  61. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  62. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  63. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  64. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  65.  
  66. \normalsize  % Choose the normalsize font.
  67.  
  68.  
  69. %  ****************************************
  70. %  *            PAGE LAYOUT               *
  71. %  ****************************************
  72. %
  73. % All margin dimensions measured from a point one inch from top and side
  74. % of page.  
  75.  
  76. % SIDE MARGINS:
  77. \if@twoside               % Values for two-sided printing:
  78.    \oddsidemargin 36pt    %   Left margin on odd-numbered pages.
  79.    \evensidemargin 74pt   %   Left margin on even-numbered pages.
  80.    \marginparwidth 100pt  %   Width of marginal notes.
  81. \else                     % Values for one-sided printing:
  82.    \oddsidemargin 54pt    %   Note that \oddsidemargin = \evensidemargin
  83.    \evensidemargin 54pt
  84.    \marginparwidth 83pt 
  85. \fi
  86. \marginparsep 10pt        % Horizontal space between outer margin and 
  87.                           % marginal note
  88.  
  89.  
  90. % VERTICAL SPACING:        
  91.                          % Top of page:
  92. \topmargin 27pt          %    Nominal distance from top of page to top
  93.                          %    of box containing running head.
  94. \headheight 12pt         %    Height of box containing running head.
  95. \headsep 25pt            %    Space between running head and text.
  96. \topskip = 11pt          %    '\baselineskip' for first line of page.
  97.                          % Bottom of page:
  98. \footskip 30pt           %    Distance from baseline of box containing
  99.                          %    foot to baseline of last line of text.
  100.  
  101. % DIMENSION OF TEXT:
  102. % 24 Jun 86: changed to explicitly compute \textheight to avoid
  103. % roundoff.  The value of the multiplier was calculated as the floor of
  104. % the old \textheight minus \topskip, divided by \baselineskip for
  105. % \normalsize.  The old value of \textheight was 530.4pt.
  106. % \textheight is the height of text (including footnotes and figures, 
  107. % excluding running head and foot).
  108.  
  109. \textheight = 38\baselineskip
  110. \advance\textheight by \topskip
  111. \textwidth 360pt         % Width of text line.
  112.                          % For two-column mode: 
  113. \columnsep 10pt          %    Space between columns 
  114. \columnseprule 0pt       %    Width of rule between columns.
  115.  
  116. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  117. % natural height instead of being stretched to exactly \textheight.
  118.  
  119. % FOOTNOTES:
  120.  
  121. \footnotesep 7.7pt    % Height of strut placed at the beginning of every
  122.                       % footnote = height of normal \footnotesize strut,
  123.                       % so no extra space between footnotes.
  124.  
  125. \skip\footins 10pt plus 4pt minus 2pt  % Space between last line of text
  126.                                        % and  top of first footnote.
  127.  
  128. % FLOATS: (a float is something like a figure or table)
  129. %
  130. %  FOR FLOATS ON A TEXT PAGE:
  131. %
  132. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  133. \floatsep 12pt plus 2pt minus 2pt        % Space between adjacent floats
  134.                                          % moved to top or bottom of
  135.                                          % text page.
  136. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and
  137.                                          % floats at top or bottom of
  138.                                          % page.
  139. \intextsep 12pt plus 2pt minus 2pt       % Space between in-text figures
  140.                                          % and text.
  141. \@maxsep 20pt                            % The maximum of \floatsep, 
  142.                                          % \textfloatsep and \intextsep
  143.                                          % (minus the stretch and
  144.                                          % shrink).
  145. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  146. \dblfloatsep 12pt plus 2pt minus 2pt     % Same as \floatsep for
  147.                                          % double-column figures in
  148.                                          % two-column mode.
  149. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for
  150.                                          % double-column floats.
  151. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep
  152.                                          % and \dbltexfloatsep.
  153.  
  154. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  155. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  156. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must
  157.                          % be 0pt plus ...)
  158. \@fpsep 8pt plus 2fil    % Space between floats on float page/column.
  159. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must
  160.                          % be 0pt plus ... )
  161.  
  162. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  163. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt
  164.                          % plus ...)
  165. \@dblfpsep 8pt plus 2fil % Space between floats on float page.
  166. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be 
  167.                          % 0pt plus ... )
  168. % MARGINAL NOTES:
  169. %
  170. \marginparpush 5pt       % Minimum vertical separation between two
  171.                          % marginal notes.
  172.  
  173.  
  174. %  ****************************************
  175. %  *           PARAGRAPHING               *
  176. %  ****************************************
  177. %
  178. \parskip 0pt plus 1pt              % Extra vertical space between
  179.                                    % paragraphs.
  180. \parindent 17pt                    % Width of paragraph indentation.
  181. %\topsep 9pt plus 3pt minus 5pt    % Extra vertical space, in addition
  182.                                    % to \parskip, added above and below
  183.                                    % list and paragraphing environments.
  184. \partopsep 3pt plus 1pt minus 2pt  % Extra vertical space, in addition
  185.                                    % to \parskip and \topsep, added when
  186.                                    % user leaves blank line before
  187.                                    % environment.
  188. %\itemsep 4.5pt plus 2pt minus 1pt % Extra vertical space, in addition
  189.                                    % to \parskip, added between list
  190.                                    % items.
  191. % See \@listI for values of \topsep and \itemsep
  192. % (Change made 9 Jun 87)
  193.  
  194. % The following page-breaking penalties are defined
  195.  
  196. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  197. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  198. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  199.  
  200. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph
  201.                                    % environment.
  202. \@endparpenalty   -\@lowpenalty    % After a list or paragraph
  203.                                    % environment.
  204. \@itempenalty     -\@lowpenalty    % Between list items.
  205.  
  206. % \clubpenalty         % 'Club line'  at bottom of page.
  207. % \widowpenalty        % 'Widow line' at top of page.
  208. % \displaywidowpenalty % Math display widow line.
  209. % \predisplaypenalty   % Breaking before a math display.
  210. % \postdisplaypenalty  % Breaking after a math display.
  211. % \interlinepenalty    % Breaking at a line within a paragraph.
  212. % \brokenpenalty       % Breaking after a hyphenated line.
  213.  
  214.  
  215. %    ****************************************
  216. %    *             SECTIONS                 *
  217. %    ****************************************
  218. %
  219. % FMi 91/03/30: \part moved to article.doc
  220. %
  221.  
  222. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  223. %            optional * [ALTHEADING]{HEADING}
  224. %    Generic command to start a section.  
  225. %    NAME       : e.g., 'subsection'
  226. %    LEVEL      : a number, denoting depth of section -- i.e.,
  227. %                 section=1, subsection = 2, etc.  A section number will
  228. %                 be printed if and only if LEVEL < or = the value of
  229. %                 the secnumdepth counter.
  230. %    INDENT     : Indentation of heading from left margin
  231. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  232. %                 If negative, then paragraph indent of text following 
  233. %                 heading is suppressed.
  234. %    AFTERSKIP  : if positive, then skip to leave below heading,
  235. %                       else - skip to leave to right of run-in heading.
  236. %    STYLE      : commands to set style
  237. %  If '*' missing, then increments the counter.  If it is present, then
  238. %  there should be no [ALTHEADING] argument.  A sectioning command
  239. %  is normally defined to \@startsection + its first six arguments.
  240.  
  241. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus-1ex minus
  242.     -.2ex}{2.3ex plus.2ex}{\reset@font\Large\bf}}
  243. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus-1ex
  244.      minus-.2ex}{1.5ex plus.2ex}{\reset@font\large\bf}}
  245. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus
  246.      -1ex minus-.2ex}{1.5ex plus.2ex}{\reset@font\normalsize\bf}}
  247. \def\paragraph{\@startsection
  248.      {paragraph}{4}{\z@}{3.25ex plus1ex minus.2ex}{-1em}{\reset@font
  249.      \normalsize\bf}}
  250. \def\subparagraph{\@startsection
  251.      {subparagraph}{4}{\parindent}{3.25ex plus1ex minus
  252.      .2ex}{-1em}{\reset@font\normalsize\bf}}
  253.  
  254.  
  255. % Default initializations of \...mark commands.  (See below for their
  256. % use in defining page styles.
  257. %
  258.  
  259. % \def\sectionmark#1{}           % Preloaded definitions
  260. % \def\subsectionmark#1{}
  261. % \def\subsubsectionmark#1{}
  262. % \def\paragraphmark#1{}
  263. % \def\subparagraphmark#1{}
  264.  
  265. % The value of the counter secnumdepth gives the depth of the
  266. % highest-level sectioning command that is to produce section numbers.
  267. %
  268.  
  269. \setcounter{secnumdepth}{3}
  270.  
  271. % APPENDIX
  272. %
  273. % The \appendix command must do the following:
  274. %    -- reset the section and subsection counters to zero
  275. %    -- redefine the section counter to produce appendix numbers
  276. %    -- redefine the \section command if appendix titles and headings
  277. %       are to look different from section titles and headings.
  278.  
  279. \def\appendix{\par
  280.   \setcounter{section}{0}
  281.   \setcounter{subsection}{0}
  282.   \def\thesection{\Alph{section}}}
  283.  
  284.  
  285. %    ****************************************
  286. %    *                LISTS                 *
  287. %    ****************************************
  288. %
  289.  
  290. % The following commands are used to set the default values for the list
  291. % environment's parameters. See the LaTeX manual for an explanation of
  292. % the meanings of the parameters.  Defaults for the list environment are
  293. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  294. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  295. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  296. % called for a third-level list.)  By convention, \@listK should set
  297. % \leftmargin to \leftmarginK.
  298. %
  299.  
  300. \leftmargini 2.5em
  301. \leftmarginii 2.2em     % > \labelsep + width of '(m)'
  302. \leftmarginiii 1.87em   % > \labelsep + width of 'vii.'
  303. \leftmarginiv 1.7em     % > \labelsep + width of 'M.'
  304. \leftmarginv 1em
  305. \leftmarginvi 1em
  306.  
  307. \leftmargin\leftmargini
  308. \labelsep .5em
  309. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  310. %\parsep 4.5pt plus 2pt minus 1pt  %(Removed 9 Jun 87)
  311.  
  312. % \@listI defines top level and \@listi values of
  313. % \leftmargin, \topsep, \parsep, and \itemsep
  314. % (Added 9 Jun 87)
  315. \def\@listI{\leftmargin\leftmargini \parsep 4.5\p@ plus2\p@ minus\p@
  316. \topsep 9\p@ plus3\p@ minus5\p@
  317. \itemsep 4.5\p@ plus2\p@ minus\p@}
  318.  
  319. \let\@listi\@listI
  320. \@listi 
  321.  
  322. \def\@listii{\leftmargin\leftmarginii
  323.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  324.    \topsep 4.5\p@ plus2\p@ minus\p@
  325.    \parsep 2\p@ plus\p@ minus\p@
  326.    \itemsep \parsep}
  327.  
  328. \def\@listiii{\leftmargin\leftmarginiii
  329.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  330.     \topsep 2\p@ plus\p@ minus\p@ 
  331.     \parsep \z@ \partopsep\p@ plus\z@ minus\p@
  332.     \itemsep \topsep}
  333.  
  334. \def\@listiv{\leftmargin\leftmarginiv
  335.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  336.  
  337. \def\@listv{\leftmargin\leftmarginv
  338.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  339.  
  340. \def\@listvi{\leftmargin\leftmarginvi
  341.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  342.  
  343. \endinput
  344.